package com.bdqn.oa.dao;

import com.bdqn.oa.entity.PositionRole;

import java.sql.SQLException;
import java.util.List;

/**
 * @author zhowei
 * @date 2022/7/20 17:51
 */
public interface PositionRoleDao {
    /**
     * 添加用户权限
     * @param positionRole
     * @return
     */
    int insertRole(PositionRole positionRole) throws SQLException;

    /**
     * 删除权限
     * @param positionRole
     * @return
     * @throws SQLException
     */
    int deleteRole(PositionRole positionRole) throws SQLException;

    /**
     * 查看某岗位下的权限
     * @param PoId
     * @return
     * @throws SQLException
     */
    List<PositionRole> getRoleByPoId(Integer PoId) throws  SQLException;

}
